/**
 * Copyright 2024 The coretext Authors. All Rights Reserved.
 */
import { Block } from '../block/Block';

export interface IBlockBuilder {

  /**
   * 构造文本类型块
   * @param text 文本内容
   * @returns
   */
  buildTextBlock(text: string): Block;

  /**
   * 根据内容构造块列表
   * @param text 内容
   * @returns
   */
  buildBlocks(text: string): Array<Block>;
}